<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <?php include_http_metas() ?>
  <?php include_metas() ?>
  <?php include_title() ?>
  <?php include_stylesheets() ?>
  <?php include_javascripts() ?>
  <link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>

  <div id="container">
    <div id="header" class="clearfix">
      <div id="logo">
        <h1><a href="<?php echo url_for('@homepage') ?>">艺海拍卖网</a></h1>
      </div>
      <div id="account">
        <a href="/">网站首页</a> |
        <a href="<?php echo url_for('@homepage') ?>">管理首页</a>
        <?php if ($sf_user->isAuthenticated()): ?>
          |
          <?php echo link_to('退出', '@sf_guard_signout') ?>
        <?php endif ?>
      </div>
    </div>
    
    <div id="middle" class="clearfix">
      <div id="sidebar">
        <?php if ($sf_user->isAuthenticated()): ?>
        <ul>
            <li><?php echo link_to('文章', 'article') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('发表', 'article_new') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('分类', 'article_category') ?></li>
	    <br />
			<li><?php echo link_to('专题', 'special') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('新建', 'special_new') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('图片', 'special_photo') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('报道', 'report') ?></li>
	    <br />
			<li><?php echo link_to('相册', 'album') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('新建相册', 'album_new') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('照片列表', 'photo') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('上传照片', 'photo') ?></li>
	    <br />
			<li><?php echo link_to('视频', 'video') ?></li>
	    <br />	
			<li><?php echo link_to('留言', 'message') ?></li>
	    <br />
			<li><?php echo link_to('首页图片', 'homepage_image') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('上传图片', 'homepage_image_new') ?></li>
	    <br />
			<li><?php echo link_to('友情链接', 'link') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('添加链接', 'link_new') ?></li>
	    <br />
			<li><?php echo link_to('广告管理', 'ad') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('添加广告', 'ad_new') ?></li>
			<li>&nbsp;&nbsp;—<?php echo link_to('广告类型', 'adtype') ?></li>
	    <br />
			<li><?php echo link_to('管理员', 'sf_guard_user') ?></li>
        </ul>
        <?php endif ?>
      </div>
      <div id="content">
        <?php if ($sf_user->hasFlash('message')): ?>
          <p class="message"><?php echo $sf_user->getFlash('message') ?></p>
        <?php endif ?>
        <?php echo $sf_content ?>
      </div>
    </div>
    
    <div id="footer">
      <p>Copyright &copy; 2010, 艺海拍卖网 版权所有</p>

    </div>
    
  </div>
  
  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-16216214-1");
  pageTracker._trackPageview();
  } catch(err) {}
  </script>

</body>
</html>
